home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / pagestructs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-06-26  |  2.1 KB  |  85 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef PAGESTRUCTS_H
  8. #define PAGESTRUCTS_H
  9.  
  10. #include <QMap>
  11. #include <QList>
  12. #include <QString>
  13.  
  14. struct ObjectAttribute 
  15. {
  16.     QString name;
  17.     QString type;
  18.     QString value;
  19.     QString parameter;
  20.     QString relationship;
  21.     QString relationshipto;
  22.     QString autoaddto;
  23. };
  24.  
  25. typedef QList<ObjectAttribute> ObjAttrVector;
  26.  
  27. typedef enum {Beginning, End, NotShown} TOCPageLocation;
  28.  
  29. struct ToCSetup
  30. {
  31.     QString name; //Name of ToC
  32.     QString itemAttrName; //Attribute to Scan for
  33.     QString frameName; //Destination frame
  34.     TOCPageLocation pageLocation; //Place the page number for the TOC at the beginning, end or not at all
  35.     bool listNonPrintingFrames; //List non printing frames in the TOC
  36.     QString textStyle; //Paragraph style for text
  37.     //QString leaderParaStyle; //Paragraph style for leaders
  38.     //QString pageNumberParaStyle; //Paragraph style for page numbers
  39. };
  40.  
  41. typedef QList<ToCSetup> ToCSetupVector;
  42.  
  43.  
  44. typedef enum 
  45. {
  46.     Type_1_2_3,
  47.     Type_i_ii_iii,
  48.     Type_I_II_III,
  49.     Type_a_b_c,
  50.     Type_A_B_C,
  51.     Type_None=99
  52. } DocumentSectionType;
  53.  
  54. struct DocumentSection
  55. {
  56.     uint number; //Just an index in the section list
  57.     QString name; //User defined name for the section
  58.     uint fromindex; //First page _index_ of the section in the document (old page number)
  59.     uint toindex; //Last page _index_ of the section in the document (old page number)
  60.     DocumentSectionType type; //Type of section numbering, ie i,ii,iii or a,b,c or 1,2,3, etc
  61.     uint sectionstartindex; // Start of section, an index in the range of type, eg for type i,ii,iii, this would be 2 for "ii".
  62.     bool reversed; // Counting 10-1 ?
  63.     bool active; // Is the section active, ie, if the fromindex is 10, and theres 5 pages, this should be inactive.
  64. };
  65.  
  66. typedef QMap<uint, DocumentSection> DocumentSectionMap;
  67.  
  68. typedef enum
  69. {
  70.     singlePage,
  71.     doublePage,
  72.     triplePage,
  73.     quadroPage
  74. } PageLayout;
  75.  
  76. typedef enum
  77. {
  78.     LeftPage,
  79.     MiddlePage,
  80.     RightPage
  81. } PageLocation;
  82.  
  83.  
  84. #endif
  85.